package com.zhangquan.project.system.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zhangquan.project.system.entity.SysUser;
import com.zhangquan.project.system.mapper.SysUserMapper;
import com.zhangquan.project.system.service.ISysUserService;

/**
 * 用户 业务层处理
 * @author zhang quan
 * @date 2020年4月7日 上午11:08:01
 */
@Service
public class SysUserServiceImpl implements ISysUserService{

	@Autowired	
	private SysUserMapper sysUserMapper;
	
	@Override
	public int insertUser(SysUser sysUser) {
		return sysUserMapper.insertUser(sysUser);
	}

	@Override
	public int deleteUserById(Integer id) {
		return sysUserMapper.deleteUserById(id);
	}

	@Override
	public int deleteUserByIds(Integer[] ids) {
		return sysUserMapper.deleteUserByIds(ids);
	}

	@Override
	public int updateUser(SysUser user) {
		return sysUserMapper.updateUser(user);
	}

	@Override
	public List<SysUser> selectUserList(SysUser sysUser) {
		return sysUserMapper.selectUserList(sysUser);
	}

	@Override
	public SysUser selectUserByUserName(String username) {
		return sysUserMapper.selectUserByUserName(username);
	}

}
